package com.bjqg.bjqg01.bjqg.activity.longrange.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bjqg.bjqg01.bjqg.R;
import com.bjqg.bjqg01.bjqg.activity.BaseActivity;
import com.bjqg.bjqg01.bjqg.activity.manufacturer.activity.ManufacturerActivity;
import com.zhy.autolayout.AutoLinearLayout;

import java.util.logging.LogRecord;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by bjqg01 on 2018/9/3.
 */

public class LongRangeActivity extends BaseActivity {
    @BindView(R.id.back)
    ImageView back;
    @BindView(R.id.tv_top_title_drawer)
    TextView tvTopTitleDrawer;
    @BindView(R.id.tv_search_top_drawer)
    TextView tvSearchTopDrawer;
    @BindView(R.id.tv2)
    TextView tv2;
    @BindView(R.id.li1)
    AutoLinearLayout li1;
    @BindView(R.id.li2)
    AutoLinearLayout li2;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_longrange);
        ButterKnife.bind(this);

        initdata();
    }


    private void initdata() {
        tvTopTitleDrawer.setText("网上委托");
        tvSearchTopDrawer.setVisibility(View.INVISIBLE);
    }


    @OnClick({R.id.back, R.id.li1, R.id.li2})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.li1:
                Intent tomultipe = new Intent(LongRangeActivity.this, MultipleActivity.class);
                startActivity(tomultipe);
                break;
            case R.id.li2://生产厂家委托

                Intent to = new Intent(this, ManufacturerActivity.class);
                startActivity(to);

                break;
        }
    }
}
